package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.AdConfig;
import com.caigou.bean.cms.param.AdConfigParam;
import com.caigou.bean.cms.param.AdListParam;
import com.caigou.pojo.AdConfigInfo;
import com.caigou.pojo.AdConfigList;
import com.caigou.pojo.AdListMobile;
import com.caigou.pojo.AdvertExportList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository("AdConfigMapper")
public interface AdConfigMapper {
    List<AdConfigList> loadAdConfigList(AdConfigParam param);

    List<AdvertExportList> loadAdConfigExportList(AdConfigParam param);

    AdConfigInfo loadAdConfigInfo(@Param("id") Integer id);

    void updateAdConfigStatus(@Param("configId") Integer configId, @Param("adShowStatus") Integer adShowStatus, @Param("adLogoStatus") Integer adLogoStatus);

    AdConfig loadAdConfigByAdCode(@Param("adConfigCode") String adConfigCode);

    AdConfig loadAdConfigByAdId(@Param("adConfigId") Integer adConfigId);

    List<AdConfig> loadAdConfigListByContractRelease(@Param("adContractId") Integer adContractId);

    List<AdConfigList> loadSyncAdConfigList(@Param("adCode") String adCode, @Param("adSync") String adSync, @Param("title") String title, @Param("sortType") Integer sortType);

    AdConfig loadAdConfigByAdList(@Param("adListId") Integer adListId);

    List<AdListMobile> loadMobileListAdData();

    List<AdListMobile> loadMobileAdData();
}
